<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="车辆型号">
              <a-input placeholder="请输入车辆型号" v-model="queryParam.vehicle_model"></a-input>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label=" 车架号">
              <a-input placeholder="请输入 车架号" v-model="queryParam.vin"></a-input>
            </a-form-item>
          </a-col>
          <template v-if="toggleSearchStatus">
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="开始时间">
                <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" v-model="queryParam.startTime"></j-date>
              </a-form-item>
            </a-col>
          </template>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
              <a @click="handleToggleSearch" style="margin-left: 8px">
                {{ toggleSearchStatus ? '收起' : '展开' }}
                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
              </a>
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <!-- 查询区域-END -->

    <!-- 操作按钮区域 -->
    <div class="table-operator">
      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
      <a-button type="primary" icon="download" @click="handleExportXls('设备表')">导出</a-button>
      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
        <a-button type="primary" icon="import">导入</a-button>
      </a-upload>
      <!-- 高级查询区域 -->
      <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> -->
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
      </a-dropdown>
    </div>

    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div>

      <a-table
        ref="table"
        size="middle"
        :scroll="{x:true}"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        class="j-table-force-nowrap"
        @change="handleTableChange">

        <template slot="htmlSlot" slot-scope="text">
          <div v-html="text"></div>
        </template>
        <template slot="imgSlot" slot-scope="text">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
          <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
        </template>
        <template slot="fileSlot" slot-scope="text">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
          <a-button
            v-else
            :ghost="true"
            type="primary"
            icon="download"
            size="small"
            @click="downloadFile(text)">
            下载
          </a-button>
        </template>

        <span slot="action" slot-scope="text, record">
          <a @click="handleEdit(record)">编辑</a>

          <a-divider type="vertical" />
          <a-dropdown>
            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
            <a-menu slot="overlay">
              <a-menu-item>
                <a @click="handleDetail(record)">详情</a>
              </a-menu-item>
              <a-menu-item>
                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                  <a>删除</a>
                </a-popconfirm>
              </a-menu-item>
            </a-menu>
          </a-dropdown>
        </span>

      </a-table>
    </div>

    <equipment-list-modal ref="modalForm" @ok="modalFormOk"></equipment-list-modal>
  </a-card>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import EquipmentListModal from './modules/EquipmentListModal'

  export default {
    name: 'EquipmentListList',
    mixins:[JeecgListMixin, mixinDevice],
    components: {
      EquipmentListModal
    },
    data () {
      return {
        description: '设备表管理页面',
        // 表头
        columns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          {
            title:'车辆型号',
            align:"center",
            dataIndex: 'vehicle_model'
          },
          {
            title:' 车架号',
            align:"center",
            dataIndex: 'vin'
          },
          {
            title:'中控器序列号',
            align:"center",
            dataIndex: 'central_controller_number'
          },
          {
            title:'蓄电池序列号',
            align:"center",
            dataIndex: 'battery_number'
          },
          {
            title:'充电器序列号',
            align:"center",
            dataIndex: 'charger_number'
          },
          {
            title:' 电动机序列号',
            align:"center",
            dataIndex: 'motor_number'
          },
          {
            title:'出厂时间',
            align:"center",
            dataIndex: 'factory_time',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'电机控制器序列号',
            align:"center",
            dataIndex: 'motor_controller_number'
          },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            fixed:"right",
            width:147,
            scopedSlots: { customRender: 'action' }
          }
        ],
        url: {
          list: "/equipmentList/equipmentList/list",
          delete: "/equipmentList/equipmentList/delete",
          deleteBatch: "/equipmentList/equipmentList/deleteBatch",
          exportXlsUrl: "/equipmentList/equipmentList/exportXls",
          importExcelUrl: "equipmentList/equipmentList/importExcel",
          
        },
        dictOptions:{},
        superFieldList:[],
      }
    },
    created() {
    this.getSuperFieldList();
    this.initLocalData()
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      },
    },
    methods: {
      loadData(){

      },
      initLocalData(){
        this.dataSource = [{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000N","vehicle_model":"LY-B02","vin":"ZG328822111000086","central_controller_number":"ZG328822ZKQNA11000086X","battery_number":"ZG328822LDCNA11000086X","charger_number":"ZG328822CDQNA11000086X","motor_number":"ZG328822DDJNA11000086X","motor_controller_number":"ZG328822KZQNA11000086X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000O","vehicle_model":"LY-B02","vin":"ZG328822111000087","central_controller_number":"ZG328822ZKQNA11000087X","battery_number":"ZG328822LDCNA11000087X","charger_number":"ZG328822CDQNA11000087X","motor_number":"ZG328822DDJNA11000087X","motor_controller_number":"ZG328822KZQNA11000087X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000P","vehicle_model":"LY-B02","vin":"ZG328822111000088","central_controller_number":"ZG328822ZKQNA11000088X","battery_number":"ZG328822LDCNA11000088X","charger_number":"ZG328822CDQNA11000088X","motor_number":"ZG328822DDJNA11000088X","motor_controller_number":"ZG328822KZQNA11000088X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000Q","vehicle_model":"LY-B02","vin":"ZG328822111000089","central_controller_number":"ZG328822ZKQNA11000089X","battery_number":"ZG328822LDCNA11000089X","charger_number":"ZG328822CDQNA11000089X","motor_number":"ZG328822DDJNA11000089X","motor_controller_number":"ZG328822KZQNA11000089X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000R","vehicle_model":"LY-B02","vin":"ZG328822111000090","central_controller_number":"ZG328822ZKQNA11000090X","battery_number":"ZG328822LDCNA11000090X","charger_number":"ZG328822CDQNA11000090X","motor_number":"ZG328822DDJNA11000090X","motor_controller_number":"ZG328822KZQNA11000090X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000S","vehicle_model":"LY-B02","vin":"ZG328822111000091","central_controller_number":"ZG328822ZKQNA11000091X","battery_number":"ZG328822LDCNA11000091X","charger_number":"ZG328822CDQNA11000091X","motor_number":"ZG328822DDJNA11000091X","motor_controller_number":"ZG328822KZQNA11000091X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000T","vehicle_model":"LY-B02","vin":"ZG328822111000092","central_controller_number":"ZG328822ZKQNA11000092X","battery_number":"ZG328822LDCNA11000092X","charger_number":"ZG328822CDQNA11000092X","motor_number":"ZG328822DDJNA11000092X","motor_controller_number":"ZG328822KZQNA11000092X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000U","vehicle_model":"LY-B02","vin":"ZG328822111000093","central_controller_number":"ZG328822ZKQNA11000093X","battery_number":"ZG328822LDCNA11000093X","charger_number":"ZG328822CDQNA11000093X","motor_number":"ZG328822DDJNA11000093X","motor_controller_number":"ZG328822KZQNA11000093X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00000V","vehicle_model":"LY-B02","vin":"ZG328822111000094","central_controller_number":"ZG328822ZKQNA11000094X","battery_number":"ZG328822LDCNA11000094X","charger_number":"ZG328822CDQNA11000094X","motor_number":"ZG328822DDJNA11000094X","motor_controller_number":"ZG328822KZQNA11000094X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000010","vehicle_model":"LY-B02","vin":"ZG328822111000095","central_controller_number":"ZG328822ZKQNA11000095X","battery_number":"ZG328822LDCNA11000095X","charger_number":"ZG328822CDQNA11000095X","motor_number":"ZG328822DDJNA11000095X","motor_controller_number":"ZG328822KZQNA11000095X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000011","vehicle_model":"LY-Q5","vin":"ZG328822111000096","central_controller_number":"ZG328822ZKQNA11000096X","battery_number":"ZG328822LDCNA11000096X","charger_number":"ZG328822CDQNA11000096X","motor_number":"ZG328822DDJNA11000096X","motor_controller_number":"ZG328822KZQNA11000096X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000012","vehicle_model":"LY-Q5","vin":"ZG328822111000097","central_controller_number":"ZG328822ZKQNA11000097X","battery_number":"ZG328822LDCNA11000097X","charger_number":"ZG328822CDQNA11000097X","motor_number":"ZG328822DDJNA11000097X","motor_controller_number":"ZG328822KZQNA11000097X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000013","vehicle_model":"LY-Q5","vin":"ZG328822111000098","central_controller_number":"ZG328822ZKQNA11000098X","battery_number":"ZG328822LDCNA11000098X","charger_number":"ZG328822CDQNA11000098X","motor_number":"ZG328822DDJNA11000098X","motor_controller_number":"ZG328822KZQNA11000098X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000014","vehicle_model":"LY-Q5","vin":"ZG328822111000099","central_controller_number":"ZG328822ZKQNA11000099X","battery_number":"ZG328822LDCNA11000099X","charger_number":"ZG328822CDQNA11000099X","motor_number":"ZG328822DDJNA11000099X","motor_controller_number":"ZG328822KZQNA11000099X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000015","vehicle_model":"LY-Q5","vin":"ZG328822111000100","central_controller_number":"ZG328822ZKQNA11000100X","battery_number":"ZG328822LDCNA11000100X","charger_number":"ZG328822CDQNA11000100X","motor_number":"ZG328822DDJNA11000100X","motor_controller_number":"ZG328822KZQNA11000100X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000016","vehicle_model":"LY-Q5","vin":"ZG328822111000101","central_controller_number":"ZG328822ZKQNA11000101X","battery_number":"ZG328822LDCNA11000101X","charger_number":"ZG328822CDQNA11000101X","motor_number":"ZG328822DDJNA11000101X","motor_controller_number":"ZG328822KZQNA11000101X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000017","vehicle_model":"LY-Q5","vin":"ZG328822111000102","central_controller_number":"ZG328822ZKQNA11000102X","battery_number":"ZG328822LDCNA11000102X","charger_number":"ZG328822CDQNA11000102X","motor_number":"ZG328822DDJNA11000102X","motor_controller_number":"ZG328822KZQNA11000102X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000018","vehicle_model":"LY-Q5","vin":"ZG328822111000103","central_controller_number":"ZG328822ZKQNA11000103X","battery_number":"ZG328822LDCNA11000103X","charger_number":"ZG328822CDQNA11000103X","motor_number":"ZG328822DDJNA11000103X","motor_controller_number":"ZG328822KZQNA11000103X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"000019","vehicle_model":"LY-Q5","vin":"ZG328822111000104","central_controller_number":"ZG328822ZKQNA11000104X","battery_number":"ZG328822LDCNA11000104X","charger_number":"ZG328822CDQNA11000104X","motor_number":"ZG328822DDJNA11000104X","motor_controller_number":"ZG328822KZQNA11000104X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"},{"equipment_type":null,"count":null,"start_time":null,"end_time":null,"terminal_id":"00001A","vehicle_model":"LY-Q5","vin":"ZG328822111000105","central_controller_number":"ZG328822ZKQNA11000105X","battery_number":"ZG328822LDCNA11000105X","charger_number":"ZG328822CDQNA11000105X","motor_number":"ZG328822DDJNA11000105X","motor_controller_number":"ZG328822KZQNA11000105X","factory_time":"2022-10-19","upgrade_subtask_id":null,"status":null,"upgrade_task_id":null,"create_time":null,"finish_count":null,"update_time":null,"publisher":null,"upgrade_version_id":null,"version":null,"support_version":null,"support_hardware_factory":null,"log":null,"url":null,"date":null,"equipment_id":null,"send_time":null,"receive_time":null,"download_time":null,"upgrade_time":null,"city_id":3,"city_name":"广西","factory_name":"震革"}]
      },
      initDictConfig(){
      },
      getSuperFieldList(){
        let fieldList=[];
        fieldList.push({type:'string',value:'vehicle_model',text:'车辆型号',dictCode:''})
        fieldList.push({type:'string',value:'vin',text:' 车架号',dictCode:''})
        fieldList.push({type:'string',value:'central_controller_number',text:'中控器序列号',dictCode:''})
        fieldList.push({type:'string',value:'battery_number',text:'蓄电池序列号',dictCode:''})
        fieldList.push({type:'string',value:'charger_number',text:'充电器序列号',dictCode:''})
        fieldList.push({type:'string',value:'motor_number',text:' 电动机序列号',dictCode:''})
        fieldList.push({type:'date',value:'factory_time',text:'出厂时间'})
        fieldList.push({type:'string',value:'motor_controller_number',text:'电机控制器序列号',dictCode:''})
        fieldList.push({type:'string',value:'city_name',text:'城市',dictCode:''})
        fieldList.push({type:'string',value:'factoryName',text:'车企 ',dictCode:''})
        fieldList.push({type:'datetime',value:'startTime',text:'开始时间'})
        this.superFieldList = fieldList
      }
    }
  }
</script>
<style scoped>
  /* @import '~@assets/less/common.less'; */
</style>